Mark intrinsics as safe where possible, or provide safety docs - #394
Conversation
660fe41 to
beea207
Compare
beea207 to
b49d192
Compare
|
This is very helpful! Looks like atomic operations like |
|
Atomics are really difficult to make safe. You can misuse |
|
All the more reasons to add "Safety" section to them. If it is difficult to rust-gpu maintainers, there is no hope for casual GPU developers like myself to use them correctly 馃槀 On CPU at least atomic operations on integers are perfectly safe, there is no memory unsafety that can be caused by them. I recently opened #399, maybe atomics need to start working with standard library types like |
I'm deliberately skipping
mod raytracingsince the safely specification on those intrinsics is a little more involved, with both ray pipeline and ray query having a quite complex state and UB rules around it.closes #382